package com.newbingo.dto;

import java.io.Serializable;
import java.util.Set;

import com.newbingo.entity.GamePlay;


public class GamePlayDto implements Serializable {
	private Integer Id;
	private String name;
	private String playDesc;
	private String playScript;
	private String scriptType;
	
	/*
	 * 实体转换为DTO对象
	 */
	public GamePlayDto changeToDto(GamePlay gamePlay){
		GamePlayDto dto=new GamePlayDto();
		dto.setId(gamePlay.getId());
		dto.setName(gamePlay.getName());
		dto.setPlayDesc(gamePlay.getPlayDesc());
		dto.setPlayScript(gamePlay.getPlayScript());
		dto.setScriptType(gamePlay.getScriptType());
		return dto;
	}
	
	public Integer getId() {
		return Id;
	}
	public void setId(Integer id) {
		Id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPlayDesc() {
		return playDesc;
	}
	public void setPlayDesc(String playDesc) {
		this.playDesc = playDesc;
	}
	public String getPlayScript() {
		return playScript;
	}
	public void setPlayScript(String playScript) {
		this.playScript = playScript;
	}
	public String getScriptType() {
		return scriptType;
	}
	public void setScriptType(String scriptType) {
		this.scriptType = scriptType;
	}
	
}
